package com.lantian.uavmaterial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lantian.uavmaterial.mapper.UavCommunicationDatalinkMapper;
import com.lantian.uavmaterial.domain.UavCommunicationDatalink;
import com.lantian.uavmaterial.service.IUavCommunicationDatalinkService;

/**
 * 无人机通信与数传Service业务层处理
 * 
 * @author lantian
 * @date 2025-11-06
 */
@Service
public class UavCommunicationDatalinkServiceImpl implements IUavCommunicationDatalinkService 
{
    @Autowired
    private UavCommunicationDatalinkMapper uavCommunicationDatalinkMapper;

    /**
     * 查询无人机通信与数传
     * 
     * @param uavCommunicationId 无人机通信与数传主键
     * @return 无人机通信与数传
     */
    @Override
    public UavCommunicationDatalink selectUavCommunicationDatalinkByUavCommunicationId(String uavCommunicationId)
    {
        return uavCommunicationDatalinkMapper.selectUavCommunicationDatalinkByUavCommunicationId(uavCommunicationId);
    }

    /**
     * 查询无人机通信与数传列表
     * 
     * @param uavCommunicationDatalink 无人机通信与数传
     * @return 无人机通信与数传
     */
    @Override
    public List<UavCommunicationDatalink> selectUavCommunicationDatalinkList(UavCommunicationDatalink uavCommunicationDatalink)
    {
        return uavCommunicationDatalinkMapper.selectUavCommunicationDatalinkList(uavCommunicationDatalink);
    }

    /**
     * 新增无人机通信与数传
     * 
     * @param uavCommunicationDatalink 无人机通信与数传
     * @return 结果
     */
    @Override
    public int insertUavCommunicationDatalink(UavCommunicationDatalink uavCommunicationDatalink)
    {
        return uavCommunicationDatalinkMapper.insertUavCommunicationDatalink(uavCommunicationDatalink);
    }

    /**
     * 修改无人机通信与数传
     * 
     * @param uavCommunicationDatalink 无人机通信与数传
     * @return 结果
     */
    @Override
    public int updateUavCommunicationDatalink(UavCommunicationDatalink uavCommunicationDatalink)
    {
        return uavCommunicationDatalinkMapper.updateUavCommunicationDatalink(uavCommunicationDatalink);
    }

    /**
     * 批量删除无人机通信与数传
     * 
     * @param uavCommunicationIds 需要删除的无人机通信与数传主键
     * @return 结果
     */
    @Override
    public int deleteUavCommunicationDatalinkByUavCommunicationIds(String[] uavCommunicationIds)
    {
        return uavCommunicationDatalinkMapper.deleteUavCommunicationDatalinkByUavCommunicationIds(uavCommunicationIds);
    }

    /**
     * 删除无人机通信与数传信息
     * 
     * @param uavCommunicationId 无人机通信与数传主键
     * @return 结果
     */
    @Override
    public int deleteUavCommunicationDatalinkByUavCommunicationId(String uavCommunicationId)
    {
        return uavCommunicationDatalinkMapper.deleteUavCommunicationDatalinkByUavCommunicationId(uavCommunicationId);
    }

    /**
     * 根据无人机id查询无人机通信与数传信息
     *
     * @param uavId 无人机通信与数传主键
     * @return 结果
     */
    @Override
    public UavCommunicationDatalink selectUavCommunicationDatalinkByUavId(String uavId) {
        return uavCommunicationDatalinkMapper.selectUavCommunicationDatalinkByUavId(uavId);

    }


}
